import http from '@/utils/http'
enum Api {
    queryDictInfoApi = '/api/dict/queryDictInfo',
    dictAdd = '/api/dict/saveOrUpdate',
    dictPage = '/api/dict/page',
    dictDelete = '/api/dict/delete',
    dicQueryDictInfo = '/api/dict/queryDictInfo',

}

// 是环境传NVIRONMENT 场景传SCENE
export const dictDeleteDel=async(data:any)=>{
    return http.delete(Api.dictDelete,data)
  }
export const dictPagePost=async(data:any)=>{
    return http.post(Api.dictPage,data)
  }
export const dictAddPost=async(data:any)=>{
    return http.post(Api.dictAdd,data)
  }
export const queryDictInfoApiGet = async (params:any) => {
    return http.getRestApi(Api.queryDictInfoApi,params)
}
export const dicQueryDictInfoApiGet = async (params:any) => {
    return http.getRestApi(`${Api.dicQueryDictInfo}/${params}`)
}

